package cn.lg.soar.boot.fc.entity.vo;

import cn.lg.soar.core.annotations.constraints.group.Create;
import cn.lg.soar.core.annotations.constraints.group.Update;
import cn.lg.soar.core.util.easyexcel.converters.LocalDateConverter;
import cn.lg.soar.database.base.entity.BaseEntity;
import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 财务表
 * @author ZhuanZ（无密码）
 * @since 2025-01-18
 * 开源项目：https://gitee.com/lgx1992/lg-soar 求star！请给我star！请帮我点个star！
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class FinanceExcelVo {

    @ExcelProperty(value = "用户姓名")
    private String userName;

    @ExcelProperty(value = "房间信息")
    private String roomInfo;

    /** 合同编号 */
    @ExcelProperty(value = "合同编号")
    private String contractCode;

    /** 收费类型(0-首租 1-续租 2-物业费 3-水费 4-电费 5-取暖费 6-其他) */
    @ExcelProperty(value = "收费类型")
    private String costType;

    /** 账单金额 */
    @ExcelProperty(value = "账单金额")
    private BigDecimal billAmount;

    /** 已缴金额 */
    @ExcelProperty(value = "已缴金额")
    private BigDecimal payAmount;

    /** 未缴金额 */
    @ExcelProperty(value = "未缴金额")
    private BigDecimal unpaidAmount;

    /** 是否缴完(0-否 1-是) */
    @ExcelProperty(value = "是否结清")
    private String isPaid;

    /** 付款方式(0-微信 1-支付宝 2-刷卡 3-现金) */
    @ExcelProperty(value = "付款方式")
    private String payMode;

    /** 缴费时间 */
    @ExcelProperty(value = "缴费时间")
    private LocalDateTime payTime;

    /** 收费周期开始时间 */
    @ExcelProperty(value = "收费周期开始时间", converter = LocalDateConverter.class)
    private LocalDate cycleStartDate;

    /** 收费周期结束时间 */
    @ExcelProperty(value = "收费周期结束时间", converter = LocalDateConverter.class)
    private LocalDate cycleEndDate;

}
